<?php
/*
  Template Name: category-case 专用模版
  chy
  2024-04-28 09:44:01
*/
?>

<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="/pub/css/style.css">
  <link rel="stylesheet" href="/pub/css/other.css">
  <script src="/pub/js/tailwind.3.4.3.js"></script>
  <style>
    body{
      background-color: #eee;
    }

  </style>
</head>
<body>

<?php get_header(); ?>

<h1 class="text-5xl">case list 专属模板</h1>

<div class="cbox mx-auto mt-16 flex gap-10 min-h-[30vh]">

  <main class="w-[70%]">

    <ul class="flex flex-col gap-4">

      <?php while(have_posts()){ the_post(); ?>
        <li class=" bg-white p-8">

          <h2 class="text-2xl">
            <a href="<?=get_permalink(); ?>">
              <? the_title(); ?>
            </a>
          </h2>
          
          <p class="mt-4 text-gray-600"><?php the_excerpt();?></p>
          <div class="mt-4 text-sm flex justify-between">
            <span>作者：<? the_author();?> </span>
            <span>日期：<? the_time('m-d-y');?> </span>
            <!-- <span>类别：<?php the_category(); ?></span> -->
          </div>
        </li>
      <?php } ?>
    
    </ul>


    <div class="mt-8">
      <?php
        get_template_part('parts/page');
      ?>
    </div>

    

  </main>

  <aside class="flex-1 bg-white">
    aside
  </aside>

</div>



<?php get_footer(); ?>
</body>
</html>